import axios from "@/api/http";


const login =  (params: any = {}) => {
    return axios.post('/user/login', params)
}
const register=(params:any={})=>{
    return  axios.post('/user/register',params)
}
const forget=(params:any={})=>{
    return  axios.post('/user/forget',params)
}
const emailLogin = (params: any = {}) => {
    return axios.post('/user/emailLogin', params)
}

const signeIn=(params:any={})=>{
    return  axios.post('/user/signeInByToken',params)
}
const getSignedInDay=(params:any={})=>{
    return  axios.post('/user/getSignedInDayByToken',params)
}

const userinfo=(params:any={})=>{
    return  axios.post('/user/userinfoByToken',params)
}
const updateUserInfo=(params:any={})=>{
    return  axios.post('/user/updateUserInfo',params)
}

const logout = (params: any = {}) => {
    return axios.post('/user/logout', params)
}


const queryList = (params: any = {}) => {
    return axios.post('/user/queryList', params)
}

export default {
    login,
    register,
    signeIn,
    getSignedInDay,
    userinfo,
    updateUserInfo,
    logout,
    emailLogin,
    forget,
    queryList
}